home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / hardware.721 < prev    next >
Text File  |  1992-02-06  |  4KB  |  87 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fswiss Helvetica;}
  2. \paperw10300
  3. \paperh10200
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 WorkSpace won't mount External Floppy or SCSI disk when using 40MB swapdisk\
  8. \
  9. \
  10. Q:  I have a "Net Boot" or "Optical Disk" Next Computer with a internal 40MB swapdisk. When I connect a External SCSI disk to the system, for example a PLI  Superfloppy 2.8, the WorkSpace does not see the external disk. \
  11. \
  12. \
  13. A:   The WorkSpace will ignore devices that are listed in the /etc/fstab file. The default /etc/fstab file for "Optical Disk", and "Net Boot" systems (fstab.od and fstab.client) contain an entry for /dev/sd0a. This entry is to mount the swapdisk on /private/swapdisk. \
  14.  
  15. \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fc0 \
  16. The default fstab file for a od system (after some comments) looks like this:\
  17. \
  18. /dev/od0a / 4.3 rw,noquota,noauto 0 1\
  19. /dev/sd0a /private/swapdisk 4.3 rw,noquota,noauto 0 0\
  20. \
  21. When you place a device on the SCSI port, the lowest target address will be assigned to sd0 (the swapdisk is target 6, the highest address available). Therefore the first (lowest target ID) scsi device you hook up will become /dev/sd0a and therefore will not be mounted by the WorkSpace (autodiskmount).\
  22.  
  23. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 \
  24.  
  25. \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fc0 To solve this problem you will have to edit two files; /etc/fstab and /etc/rc.swap. You will need root privileges to edit these files.\
  26. \
  27. 1) Edit the /etc/fstab file and remove or comment out (add a # sign on the first column of the line) the entry for /dev/sd0a. The swapdisk is mounted from the /etc/rc.swap script, and the mount in the fstab file is not needed.\
  28.  
  29. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 \
  30. 2) Edit the /etc/rc.swap file and comment out the 'break' command on line # 18. This 'break' causes the script to stop looking for SCSI devices with the label 'swapdisk' when a SCSI disk is found with no label ( like the floppy device with no floppy installed). If you do not comment out the 'break' command on line # 18 of this script, the swapdisk 
  31. \fc0 may not be used as a swap device, and will show up in your FileViewer. Here is a listing of the upper section of the /etc/rc.swap file with the 'break' command on line # 18 commented out,\
  32. /etc/rc.swap:\
  33.  
  34. \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\fc0 #\
  35. # This script mounts and initializes the internal swapdisk which we mount\
  36. # on /tmp.\
  37. #\
  38. NEWSWAPDIR=/private/swapdisk/vm\
  39. NEWSWAPFILE=$NEWSWAPDIR/swapfile\
  40. \
  41. # Find out which devices to check.\
  42. DRIVES=`echo /dev/sd?a | sed -e 's/\\/dev\\///g'`\
  43. \
  44. useswap=0\
  45. for SWAPDEV in $DRIVES\
  46. do\
  47.         /usr/etc/checkswap -f /dev/r$\{SWAPDEV\}\
  48.         swapstatus=$?\
  49.         case $swapstatus in\
  50.             0)\
  51. #                break;        <--------- comment out this line (line # 18)\
  52.                 ;;\
  53.             1)\
  54. #               (echo "No valid label on swapdisk.")            >/dev/console\
  55.                 ;;\
  56.             2)\
  57. #               (echo "/dev/$SWAPDEV is not a swapdisk!")       >/dev/console\
  58.                 ;;\
  59.             3)\
  60.                 if [ $1x = autobootx ]\
  61.                 then\
  62.                         /usr/etc/fsck -p /dev/r$\{SWAPDEV\} >/dev/console 2>&1 \\\
  63.                                 && useswap=1\
  64.                 else\
  65.                         useswap=1\
  66.                 fi\
  67.                 break\
  68.                 ;;\
  69.             *)\
  70.                 (echo "Unknown error from checkswap, error=$swapstatus") \\\
  71.                                                                 >/dev/console\
  72.                 ;;\
  73.         esac\
  74. done\
  75. .\
  76. .\
  77. .\
  78.  
  79. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 \
  80. \
  81. \
  82. QA721\
  83. \
  84. Valid for 2.0\
  85. \
  86.  
  87.